package imageswipe.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author 
	 */
	public class SelectIndexEvent extends Event 
	{
		public static const INDEX_CHANGED:String = "indexChanged";
		private var _index:uint;
		
		public function SelectIndexEvent(type:String, index:uint, bubbles:Boolean = false, cancelable:Boolean = false) 
		{ 
			super(type, bubbles, cancelable);
			_index = index;
		} 
		
		public override function clone():Event 
		{ 
			return new SelectIndexEvent(type, _index, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("SelectIndexEvent", "type", "index", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get index():uint 
		{
			return _index;
		}
		
	}
	
}